def test():
    for i in range(3):
        yield i

if __name__ == '__main__':
    a = test()
    print(a.__next__())
    print(a.__next__())
    print(a.__next__())
